/*
 * Project: yygh-parent
 *
 * File Created at 2023/10/11
 *
 * 自定义时间格式代替DATE标签：2023-10-11 17:25:17:25
 */

import java.util.AbstractSet;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.TreeSet;

/**
 * @author 用户名
 * @Type cc.java
 * @Desc
 * @date 2023/10/11 17:25
 */
class DD {
    public static void main(String[] args) {
        double d1=-0.5;
        System.out.println("Ceil d1="+Math.ceil(d1));
        System.out.println("floor d1="+Math.floor(d1));
        Integer flag = 1;
        if (flag == 1)
        {
            System.out.println("true");
        }
        else
        {
            System.out.println("false");
        }
        System.out.println(beforeFinally());

        TreeSet t=new TreeSet<>();
        t.add("aa311aa");
        t.add("c2cc");
        t.add("b1bb");
        System.out.println(t);
        //t.add(1); //error 只能一种类型
        HashSet<String> t1 = new HashSet<>();
        t1.add("4");
        t1.add("dedwd");
        t1.add("3");
        t1.add("a99ww");
        System.out.println(t1);




    }
    public static int beforeFinally(){
        int a = 0;
        try{
            a = 1;
            return a;
        }finally{
            a = 2;
        }
    }



}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * <p>
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2023/10/11 用户名 create
 */ 
